from django.shortcuts import render


def index(request):
    context = {
        'username': 'zhiliao',
        'keys': 'abc',
        'persons': {
            'username': 'ketang',
            'age': '18',
            'keys': 'abc'
        },
        'books': [
            '三国演义',
            '水浒传',
            '西游记',
            '红楼梦'
        ]
    }
    return render(request, 'index.html', context=context)